using System;
using System.Collections.Generic;
using System.Text;

namespace UMC.WorkFlow
{
    /// <summary>
    /// 实例事件的参数
    /// </summary>
    public class InstanceEventArgs : System.EventArgs
    {

        /// <summary>
        /// 提交的审批命令
        /// </summary>
        public CommandType CommandType
        {
            get;
            private set;
        }
        /// <summary>
        /// 当前用户的身份
        /// </summary>
        public Identity Identity
        {
            get;
            private set;
        }
        /// <summary>
        /// 作用的活动
        /// </summary>
        public Shape Shape
        {
            get;
            private set;
        }
        public TaskRuntime Runtime
        {
            get; private set;
        }
        /// <summary>
        /// 事件参数初始化
        /// </summary>
        /// <param name="cmdKey"></param>
        /// <param name="iden"></param>
        /// <param name="shape"></param>
        internal InstanceEventArgs(CommandType cmdKey, Identity iden, Shape shape, TaskRuntime taskRuntime)
        {
            this.CommandType = cmdKey;
            this.Identity = iden;
            this.Shape = shape;
            this.Runtime = taskRuntime;
        }
    }
}
